package com.sam.demo.redis;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;

@Component
public class RedisOperation {
	
	@Autowired
	//@Qualifier("redisDevTemplate")
	@Qualifier("redisTestTemplate")
	private RedisTemplate<Object, Object> redisTemplate;
	
	@Autowired
	//@Qualifier("stringRedisDevTemplate")
	@Qualifier("stringRedisTestTemplate")
	private StringRedisTemplate stringRedisTemplate;
	
	public RedisTemplate<Object, Object> getRedisTemplate() {
		return redisTemplate;
	}
	public void setRedisTemplate(RedisTemplate<Object, Object> redisTemplate) {
		this.redisTemplate = redisTemplate;
	}
	public StringRedisTemplate getStringRedisTemplate() {
		return stringRedisTemplate;
	}
	public void setStringRedisTemplate(StringRedisTemplate stringRedisTemplate) {
		this.stringRedisTemplate = stringRedisTemplate;
	}
	
}
